﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum PlayTypeState
    {
        /// <summary>
        /// 锁定的
        /// </summary>
        Locked = 0,
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 1
    }

    public static class PlayTypeStateEx
    {
        public static string GetName(this PlayTypeState state)
        {
            switch (state)
            {
                case PlayTypeState.Locked:
                    return "禁用";
                case PlayTypeState.Normal:
                    return "可用";
                default:
                    throw new ArgumentOutOfRangeException("state");
            }
        }
    }
}
